package day010.homework.p3;

public class Manager extends Employee {
    private Clerk clerk;

    public Manager() {
    }

    public Manager(String name, String workId, String dept, Clerk clerk) {
        super(name, workId, dept);
        this.clerk = clerk;
    }

    public Clerk getClerk() {
        return clerk;
    }

    public void setClerk(Clerk clerk) {
        this.clerk = clerk;
    }

    @Override
    public void showMsg() {
        System.out.println(this.getDept() + "的:" + this.getName() + "，员工编号：" +
                this.getWorkId() + "\n"
                + "他的职员是：" + clerk.getName());
    }
}
